package models_main

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
)

type ExpertPayRecord struct {
	Id     int64 `gorm:"primaryKey"` //ID
	PlanId int64
	UserId int64
	Amount int32
	Type   int32
}

type ExpertPlan struct {
	Id         int64  `gorm:"primaryKey"` //
	ExpertId   int64  //专家ID
	MatchId    int32  //赛事ID
	HomeScore  int32  //竞猜主队比分
	AwayScore  int32  //竞猜客队比分
	Title      string //标题
	PlayId     int64  //玩法id，欧指、让球、大小
	CreateTime int64  //创建时间
	FeeType    int32  //此竞猜是否免费0->免费，1->付费鹰钻，2->付费克拉
	FeePay     int32  //付费鹰钻或克拉
	Content    string //竞猜文字内容
	IsWin      int32  //0未开奖，1未猜中 末，2已猜中 红
	UserId     int    //会员Id
	//MatchTime  int64  //比赛开始时间
}

func (ExpertPayRecord) TableName() string {
	return fmt.Sprintf("%sexpert_plan_record", models.Prefix)
}
